{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      &raquo; <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">基本资料</td>
  </tr>
  <tr>
    <td align="center" valign="top" width="20%" class="block_left">
      {include file="pub_cp_menu.htm"}
    </td>
    <td align="center" valign="top" width="80%" class="block_right">
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
      <tr>
        <td height="20" align="left" class="current_place" nowrap>
          <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
          &raquo; <a href="{$control_index}?act=cp_profile" target="_self" class="current_place">基本资料</a>
        </td>
        <td align="right" class="current_place" nowrap>&nbsp;</td>
      </tr>
    </table>
    <div class="space"></div>
    <form id="cp_profile" name="cp_profile" method="post" action="javascript:void(null);" enctype="multipart/form-data">
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
      <tr class="block_title">
        <td colspan="3" align="left">基本资料</td>
      </tr>
      <tr>
        <td width="20%" align="right" class="block_left">用户:</td>
        <td width="50%" align="left" valign="top" class="block_right">
          {$member.username}
        </td>
        <td width="30%" align="left" valign="top" class="block_right">&nbsp;</td>
      </tr>
      <tr>
        <td align="right" class="block_left">密码:</td>
        <td align="left" valign="top" class="block_right">
          <input type="password" id="password" name="password" value="" class="input" size="42" />
        </td>
        <td align="left" valign="top" class="block_right">
          <span id="password_return" name="password_return"><span class="prompt_primal">请输入密码</span></span>
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left">E-mail:</td>
        <td align="left" valign="top" class="block_right">
          <input type="text" id="email" name="email" value="{$member.email}" class="input" size="42" />
        </td>
        <td align="left" valign="top" class="block_right">
          <span id="email_return" name="email_return"><span class="prompt_primal">找回密码将用到E-mail,请认真填写</span></span>
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left">密码提示问题:</td>
        <td align="left" valign="top" class="block_right">
          <select id="question" name="question" class="select" />
            <option value="">= 请选择 =</option>
            {return_select sort="question"}
            {foreach name=question from=$question item=item}
            {if $member.question_type == "1" && $member.question == $item.id}
            <option value="{$item.id}" selected>{$item.name}</option>
            {else}
            <option value="{$item.id}">{$item.name}</option>
            {/if}
            {/foreach}
            {if $member.question_type == "1"}
            <option value="custom">= 自定义密码提示问题 =</option>
            {else}
            <option value="custom" selected>= 自定义密码提示问题 =</option>
            {/if}
          </select>
          <span id="question_custom_show" name="question_custom_show"></span>
        </td>
        <td align="left" valign="top" class="block_right">
          <span id="question_return" name="question_return"><span class="prompt_primal">选择密码提示问题,找回密码等重要操作将用到密码提示问题</span></span>
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left">密码提示答案:</td>
        <td align="left" valign="top" class="block_right">
          <input type="text" id="answer" name="answer" size="42" maxlength="255" value="{$member.answer}" class="input" />
        </td>
        <td align="left" valign="top" class="block_right">
          <span id="answer_return" name="answer_return"><span class="prompt_primal">选择密码提示答案,找回密码等重要操作将用到密码提示答案</span></span>
        </td>
      </tr>
      <tr>
        <td colspan="3" align="center" class="block_footer">
          <input type="button" id="cp_profile_submit" name="cp_profile_submit" value="确定" class="button"
            onclick="xajax.$('cp_profile_submit').disabled=true;
                      xajax.$('cp_profile_submit').value='请等待...';
                      xajax_cp_profile(xajax.getFormValues('cp_profile'));">
        </td>
      </tr>
    </table>
    </form>
    </td>
  </tr>
</table>
</div>

{include file="pub_footer.htm"}